<?php

namespace App\Models;

use Illuminate\Database\Eloquent\Model;

class Area extends Model {

    protected $table = 'area';
    protected $guarded = ['id'];

    public function getActivity(){
        return $this->hasOne('App\Models\Activity','id','activity_id');
    }

    public function getScene(){
        return $this->hasMany('App\Models\Scene','area_id','id');
    }
}
